<template>
	<view>
		<view class="">
			<view class="uni-form-item uni-column">
				<view class="title">账号</view>
				<input class="uni-input" focus placeholder="请输入账号" v-model="user_name" />
			</view>
			<view class="uni-form-item uni-column">
				<view class="title">密码</view>
				<input class="uni-input" password type="text" placeholder="请输入密码" v-model="pwd" />
			</view>
		</view>


		<view class="" style="margin-top: 50rpx">
			<button type="primary" @click="login">登录</button>
		</view>

<!-- 		<view class="" style="margin-top: 50rpx">
			<navigator open-type="navigate" url="../goods/pz2">
				<button type="warn">游客方式访问-商品配置页</button>
			</navigator>
		</view> 
		
		<view class="" style="margin-top: 50rpx">
			<navigator open-type="navigate" url="../goods/form1">
				<button type="warn">跳转到form1</button>
			</navigator>
		</view> 
		
		<view class="" style="margin-top: 50rpx">
			<navigator open-type="navigate" url="../goods/form2">
				<button type="warn">跳转到form2</button>
			</navigator>
		</view> 
		
		<view class="" style="margin-top: 50rpx">
			<navigator open-type="navigate" url="../goods/form3">
				<button type="warn">跳转到form3</button>
			</navigator>
		</view> 
		
		<view class="" style="margin-top: 50rpx">
			<navigator open-type="navigate" url="../goods/form3">
				<button type="warn">跳转到form3</button>
			</navigator>
		</view> -->
		
		<view class="" style="margin-top: 50rpx">
			<navigator open-type="navigate" url="../view/view">
				<button type="warn">跳转到view</button>
			</navigator>
		</view> 
		
		<view class="" style="margin-top: 50rpx">
			<navigator open-type="navigate" url="../news/newslist">
				<button type="warn">跳转到newslist</button>
			</navigator>
		</view> 
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				user_name: "",
				pwd: ""
			}
		},
		methods: {
			login() {
				if (this.user_name == "aaa" && this.pwd == "123456") {
					uni.switchTab({
						url: "/pages/tabbar/tab1"
					})
				}
			}
		}
	}
</script>

<style>

</style>
